package com.jinghao.tws.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import com.jinghao.core.common.exception.JingHaoCustomerException;
import com.jinghao.core.common.service.impl.JingHaoBaseServiceImpl;
import com.jinghao.core.common.util.cnd.JhCnd;
import com.jinghao.tws.entity.WvProcessConfig;
import com.jinghao.tws.service.IWvProcessConfigService;
import com.jinghao.tws.util.EJhTwsCode;

@Service("wvProcessConfigService")
public class WvProcessConfigServiceImpl extends JingHaoBaseServiceImpl<WvProcessConfig> implements IWvProcessConfigService {
	//==================定制内容开始======================
//在这里修改代码
	
	@Override
	public void listWvProcessByFlowCode(WvProcessConfig model) {
		if (StringUtils.isEmpty(model.getFcode())){
			throw new JingHaoCustomerException(EJhTwsCode.TWS3000.getCode(),"流程编码不能为空，请重新输入!");
		}
		JhCnd cnd=new JhCnd();
		model.setProcessId("tally-event");
		cnd.andEquals("fcode");
		cnd.andNotEquals("processId");
		model.setJhCnd(cnd);
		List<Map<String,Object>> list=this.queryMapListById(model, "queryMapListProcessconfigByAllProcessId");
		model.setMapList(list);
	}
	
	//==================定制内容结束======================
}
